package com.qsdjf.fp.weixin.configuration.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "wechat")
@PropertySource("classpath:wechat.properties")
public class Config {

	/**
	 * 在完成了第一步：用户同意授权，获取code 以后，传递给微信支付系统的一个 uri， 指向 wechat-openid 这个项目的 WeixinController 的第二步：通过code换取网页授权access_token
	 */
	private String redirectUri;

	private String appid;

	private String appsecret;

	public String getRedirectUri() {
		return redirectUri;
	}

	public void setRedirectUri(String redirectUri) {
		this.redirectUri = redirectUri;
	}

	public String getAppid() {
		return appid;
	}

	public void setAppid(String appid) {
		this.appid = appid;
	}

	public String getAppsecret() {
		return appsecret;
	}

	public void setAppsecret(String appsecret) {
		this.appsecret = appsecret;
	}

}
